<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>公司业绩管理--栏目</title>
<%@include file="../../common/tagInclude.jsp" %>
<%@include file="../../common/headerInclude.jsp" %>
<script type="text/javascript">
	$(function() {
		$("#jvForm").validate();
	});
	function edit(cateId){
		window.location = '${basePath}super/performance/category-show.do?cateId='+cateId;
	}
	function del(cateId){
		if(!confirm("确定要删除此栏目,删除后旗下文章将没有分类?")){
			return ;
		}
		window.location = '${basePath}super/performance/category-del.do?cateId='+cateId;
	}
</script>
</head>
<body>
<div class="body-box">
	<div class="rhead">
		<div class="rpos">当前位置: 首页  - 公司业绩 - 栏目列表 </div>
		<form class="ropt">
			<input type="submit" value="添加" onclick="this.form.action='${basePath}super/performance/category-show.do';">
		</form>
		<div class="clear"></div>
	</div>
	<form action="${basePath}super/performance/category-list.do" method="get" style="padding-top:5px;">
		<div>
			<!-- 语种&nbsp;<select name="languageId" id="languageId"  onfocus="this.languageId=this.selectedIndex;" onchange="this.selectedIndex=this.languageId;">
					<option value="">请选择</option>
					<option value="1" <c:if test="${languageId == 1}" >selected</c:if>>中文</option>
					<option value="2" <c:if test="${languageId == 2}" >selected</c:if>>英文</option>
				</select>
			&nbsp;&nbsp;<input type="submit" value="查询"><br/><br/>-->
		</div>
		<table class="pn-ltable" width="100%" cellspacing="1" cellpadding="0" border="0">
			<thead class="pn-lthead">
			<tr>
				<th>序列</th>
				<th>语种</th>
				<th>名称</th>
				<th>显示顺序</th>
				<th>显示方式</th>
				<th>描述</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody class="pn-ltbody">
			<c:forEach items="${cateList}" var="cate" varStatus="status">
			<tr>
				<td align="center"><input type="checkbox" id="cateId" name="cateId" value="${cate.cateId}"/></td>
				<td align="center">${cate.languageInfo.name}</td>
				<td align="center">${cate.name}</td>
				<td align=center>${cate.order}</td>
				<td align=center>
					<c:choose>
						<c:when test="${cate.showType == 1}">列表显示</c:when>
						<c:otherwise>详情显示</c:otherwise>
					</c:choose>
				</td>
				<td>${cate.desc}</td>
				<td align=center>
					<a href="javascript:edit('${cate.cateId}');">编辑</a>&nbsp;&nbsp;
					<a href="javascript:del('${cate.cateId}');">删除</a>&nbsp;&nbsp;
				</td>
			</tr>
			</c:forEach>
			</tbody>
		</table>
	</form>
</div>
</body>
</html>